// 自动生成模板UserInfo
package autocode

import (
	"time"

	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// UserInfo 结构体
// 如果含有time.Time 请自行import time包
type UserInfo struct {
	global.GVA_MODEL
	UserName     string     `json:"userName" form:"userName" gorm:"column:user_name;comment:用户名字;size:50;"`
	OpenId       string     `json:"openId" form:"openId" gorm:"column:open_id;comment:用户openID;size:100;"`
	CreateTime   *time.Time `json:"createTime" form:"createTime" gorm:"column:create_time;comment:创建时间;"`
	Header       string     `json:"header" form:"header" gorm:"column:header;comment:用户头像;size:255;"`
	SkyStatus    *int       `json:"skyStatus" form:"skyStatus" gorm:"column:sky_status;comment:当日滑雪完成状态（0-未完成；1-已完成）;size:10;"`
	InvetNum     *int       `json:"invetNum" form:"invetNum" gorm:"column:invet_num;comment:当日邀请用户数（用于校验邀请人数量状态）3表示已完成;size:10;"`
	ShareStatus  *int       `json:"shareStatus" form:"shareStatus" gorm:"column:share_status;comment:分享朋友圈状态（0-未分享；1-分享成功）;size:10;"`
	AskStatus    *int       `json:"askStatus" form:"askStatus" gorm:"column:ask_status;comment:问答完成状态（0-未完成；1-已完成）;size:10;"`
	MilkStatus   *int       `json:"milkStatus" form:"milkStatus" gorm:"column:milk_status;comment:挤牛奶活动完成状态（0-已完成；1未完成）;size:10;"`
	ProgramNum   *int       `json:"programNum" form:"programNum" gorm:"column:program_num;comment:点击进入小程序完成数（进入一个不同的小程序+1）6表示完成活动;size:10;"`
	MilkDripsNum *int       `json:"milkDripsNum" form:"milkDripsNum" gorm:"column:milk_drips_num;comment:用户拥有的奶滴数量;size:10;"`
	IsDelete     *int       `json:"isDelete" form:"isDelete" gorm:"column:is_delete;comment:有效状态（0-有效；1-无效）;size:10;"`
	UpdateTime   *time.Time `json:"updateTime" form:"updateTime" gorm:"column:update_time;comment:活动当前有效时间。校验活动是否为今日活动数据;"`
	SignStatus   *int       `json:"signStatus" form:"signStatus" gorm:"column:sign_status;comment:当日签到状态;size:10;"`
	SignNum      *int       `json:"signNum" form:"signNum" gorm:"column:sign_num;comment:签到次数;size:10;"`
	Version      *int       `json:"version" form:"version" gorm:"column:version;comment:版本好;size:10;"`
	StartData    *time.Time `form:"startData"`
	EndData      *time.Time `form:"endData"`
}

// TableName UserInfo 表名
func (UserInfo) TableName() string {
	return "user_info"
}
